package com.bytezreo.objectclass2;

/**
 * 
 * @Description   重写 equals  +  toString
 * @author  Bytezero·zhenglei!      Email:420498246@qq.com
 * @version
 * @date 2021年9月24日下午3:09:52
 * @
 *
 */
public class CircleTest {
	public static void main(String[] args) {
		
		Circle circle1 = new Circle(2.3);
		Circle circle2 = new Circle(2.31,"while",2.0);
		
		
		System.out.println("颜色是否相等："+circle1.getColor().equals(circle2.getColor()));
		
		System.out.println("半径是否相等："+circle1.equals(circle2));
		
		System.out.println(circle1);
		System.out.println(circle2.toString());
	
	}

}
